出现问题:permission denied
解决方法:
Step 1: Check for SSH keys
$ ls -al ~/.ssh
Step 2: Generate a new SSH key
$ ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
Step 3: Add your key to the ssh-agent
$ eval "$(ssh-agent -s)"
$ ssh-add ~/.ssh/id_rsa
Step 4: Add your SSH key to your account
$ pbcopy < ~/.ssh/id_rsa.pub
Add the copied key to GitHub: 登录github网站完成。
Step 5: Test the connection
$ ssh -T git@github.com